
var request = new XMLHttpRequest();
request.open("get", "./data/areas.json");

var json = JSON.parse(request.responseText);

for(let i in json) {
    areaList[i] = json[i];
    var item = document.createElement("li");
    item.innerHTML = areaList[i].name;
    console.log(item.innerHTML);
    if(i == 0) {
        item.className = "tab_item tab_active";

    }
    else {
        item.className = "tab_item";
    }
    item.addEventListener('click', tabClick);
}